<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Login</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<script type="text/javascript" src="js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="js/script.js"></script>
  </head>
  
  <body class="body">
	  <div id="login">
		  <form action="loginServlet" method="post" class="form1">
		   	<span id="span1">用户名：</span><br/><input type="text" placeholder="用户名" autocomplete="off" name="username" autofocus required="required" onchange="checkUsername(this)"/><span>&nbsp;</span><br/>
		   	<span id="span1">密码：</span><br/><input type="password" placeholder="密码" name="password" autofocus required="required" onchange="checkPassword(this)"/><span>&nbsp;</span><br/>
		   	<span style="color:red">${msg }</span><br/>
		   	<input type="submit" value="登录" style="background-color:orange; width:50px;">
		   	<input type="reset" value="重置" style="background-color:orange; width:50px;">
		  </form>
	  </div>
  </body>
</html>
